<!--
 * @Author: Wushiqi
 * @Descripttion: 重定向页面
 * @Date: 2019-11-18 18:12:06
 * @LastEditor: Wushiqi
 * @LastEditTime: 2020-12-21 15:47:46
-->
<script>
export default {
  created() { // 重定向页面
    console.log('重定向')
    // const { params, query } = this.$route
    // const { path } = params
    // this.$router.replace({ path: '/' + path, query })
    // const { params } = this.$route
    // const { path } = params
    // const base = this.$router.options.base ? this.$router.options.base : '/'
    this.$router.push({ path: `/${sessionStorage.toPath}` })
  },
  render: function(h) {
    return h() // avoid warning message
  }
}
</script>
